 

try{
	// alert(window.navigator.userAgent);
	  document.getElementById('txtLoginID').value='100719000050';
	  
	  
	// $("#username").value="aaa";
//	 alert($("#username").value);
	document.getElementById('txtPassword').value='065355';
 
//	 alert("a10:"+arrP4a);
//	 var a1=arrP4a[0];
//	 alert("a1:"+a1);
//	 var a2=arrP4a.item(0);
//	 alert("a2:"+a2);
  
		var Url2=document.getElementById("validImage"); 
	//	alert(Url2.src);
		controlRange = document.body.createControlRange(); 
	//	alert("a1");
		controlRange.addElement(Url2);
	//	alert("a2");
		controlRange.execCommand('Copy');  
	//	alert("a3");
	//	Url2.select(); // 选择对象   aa bb
	//	document.execCommand("Copy"); // 执行浏览器复制命令
		
	  function  checkCapt(){
		// document.getElementsByName("submit").item(0).click();
		
		var code=document.getElementById('txtValidCode').value;
	 	if(code.length==4)
	 	{
	 		if(confirm("验证码已经填写上了，需要提交吗"))
	 			{
	 			document.getElementById('btnLogin').click();//exit timer
	 			// mycallJava("gotoChargeCard");
	 			}
	 			
	 		}else
	 			window.setTimeout(checkCapt,4000);
	 	
	 	 
	 			
		
	}	
	window.setTimeout(checkCapt,4000);
	
	
	window.setTimeout(function(){
		var code=document.getElementById('txtValidCode').value;
		if(code.length<4)
			alert("验证码可能自动识别不到，请手工添加");
	},7000);
	
	mycallJava("getCaptch");
	
	//window.setTimeout(function(){
	//	alert("start to pub");
		//window.location="http://localhost/destoon/member/my.php?mid=5&action=add&aP4=js";
	//},25000);
  
	 }catch(e)
	 {
		 
		 alert(e.number+":"+e.message);
	 }